package code4;

public class User implements java.io.Serializable{

    private static final long serialVersionUID = -21L;

    private String userName;
    private String passage;

    public User() {
    }

    public User(String userName, String passage) {
        setUserName(userName);
        setPassage(passage);
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassage() {
        return passage;
    }

    public void setPassage(String passage) {
        this.passage = passage;
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", passage='" + passage + '\'' +
                '}';
    }
}
